$(document).ready(function(){
	
	$(".user_fullname").click(function(){
		$.ajax({
			url:"?com=user&action=account",
			type:"POST",
			data:{},
			beforeSend:function(){},
			success:function(data){
				var popup = az.view.htmlPopup(data);
			}
		});
	});
	
	$("#signup").click(function(){
		$.ajax({
			url:"?com=user&action=register",
			type:"POST",
			data:{},
			beforeSend:function(){},
			success:function(data){
				az.view.htmlPopup(data);
			}
		});
	});
	$("#boxsearch").keydown(function(e){
		if ( e.keyCode == 13 ){
			window.location="?com=page&action=search&str="+az.control("#boxsearch").value;
		}
	});
	
	$("#btnsearch").click(function(){
		window.location="?com=page&action=search&str="+az.control("#boxsearch").value;
	});
	
	$("#signin").click(function(){
		$.ajax({
			url:"?com=page&action=login",
			type:"POST",
			data:{},
			beforeSend:function(){},
			success:function(data){
				az.view.htmlPopup(data);
			}
		});
	});
	
});